@layout("/common/_container.html",{plugins:["ztree"],js:["/assets/modular/app/member/member.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">用户信息</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md3 layui-col-lg2">
            <div class="layui-card">
                <span  class="layui-btn icon-btn" style="display: inline-block;height: 45px;line-height: 45px;padding: 0 21px;color: #fff;font-size: 14px;border-radius: 2px;">PS: 顶部是一级代理，展开直推用户</span>
                <div class="layui-card-body mini-bar">
                    <div class="ztree" style="overflow-x:auto" id="leftTree"></div>
                </div>
            </div>
        </div>
        <div class="layui-col-xs12 layui-col-md9 layui-col-lg10">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <input id="condition" class="layui-input" type="text" placeholder="手机号/邮箱/邀请码"/>
                            </div>
                            <div class="layui-inline">
                                <input id="uid" class="layui-input" type="text" placeholder="uid"/>
                            </div>

                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
                                @if(shiro.hasPermission("/member/add")){
                                <button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>添加</button>
                                @}
                                <!--<button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>导出</button>-->
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="memberTable" lay-filter="memberTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="statusTpl">
    <input type="checkbox" lay-filter="status" value="{{d.memberId}}" lay-skin="switch" lay-text="启用|禁用" {{d.status=='Y'?'checked':''}} />
</script>

<script type="text/html" id="tableBar">
    @if(shiro.hasPermission("/member/edit")){
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="updatePay">重置资金密码</a>
    @}
    @if(shiro.hasPermission("/member/edit")){
        <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="queryMyTeam">团队</a>
    @}
    @if(shiro.hasPermission("/member/edit")){
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>
    @}
    @if(shiro.hasPermission("/member/delete")){
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
    @}

</script>

@}
